/**
 * Container
 */
.sp_container {
    border: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.sp_input {
    background-color: white;
    border: 1px solid #ccc;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;

    box-shadow:         0 1px 1px rgba(0,0,0,0.075) inset;
    -moz-box-shadow:    0 1px 1px rgba(0,0,0,0.075) inset;
    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.075) inset;
    margin: 0 !important;
    /* width: 320px; */

    font-size: 14px;
    height: 34px;
    line-height: 34px;
    min-height: 34px;
    padding: 4px 6px;
    vertical-align: middle;
    display: block;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    &:focus {
        border: 1px solid #ccc;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    }
}

.sp_container_open .sp_input {
    border-radius: 2px !important;
}
.sp_container_open .sp_button span.sp_caret { transform: rotate(180deg); }

/**
 * "Get all" button
 */
div.sp_button {
    display: inline-block;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;

    border: 0;
    width: 24px;
    height: 100%;
    padding: 0;
    vertical-align: middle;
    line-height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    span.sp_caret {
        position: absolute;
        top: 50%;
        right: 12px;
        margin-top: -1px;
        vertical-align: middle;
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 2px;
        /*vertical-align: middle;*/
        border-top: 4px dashed;
        /*border-top: 4px solid\9;*/
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        transition:transform .2s ease;
    }
}

.sp_container_open > .sp_button {
    border-bottom-right-radius: 0 !important;
}

div.sp_clear_btn {
    position: absolute;
    top: 0;
    right: 25px;
    display: block;
    width: auto;
    height: 100%;
    cursor: pointer;
    font-size: 20px;
    color: #666666;
    font-weight: 600;
    margin: 0;
    padding: 6px 0 0 0;
    box-sizing: border-box;
    line-height: 1;
    font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
    &:hover { color: black;font-weight: bold; }
    &.sp_align_right { right: 10px; }
    i { font-size: 14px; }
}

/**
 * Results
 */
div.sp_result_area {
    /* background-color: transparent; */
    background-color: white;
    border: 1px solid #D6D7D7;
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 100;
    width: 300px;
    border-radius: 2px;
    &.shadowDown{
        box-shadow: 0 3px 12px rgba(0,0,0,0.2);
        -moz-box-shadow: 0 3px 12px rgba(0,0,0,0.2);
        -webkit-box-shadow: 0 3px 12px rgba(0,0,0,0.2);

        -webkit-animation: dropDownFadeInDown 200ms cubic-bezier(.23,1,.32,1);
        animation: dropDownFadeInDown 200ms cubic-bezier(.23,1,.32,1);
    }
    &.shadowUp{
        box-shadow: 0 -1px 12px rgba(0,0,0,0.2);
        -moz-box-shadow: 0 -1px 12px rgba(0,0,0,0.2);
        -webkit-box-shadow: 0 -1px 12px rgba(0,0,0,0.2);

        -webkit-animation: dropDownFadeInUp 300ms cubic-bezier(.23,1,.32,1);
        animation: dropDownFadeInUp 300ms cubic-bezier(.23,1,.32,1);
    }
    div.sp_pagination {
        margin: 0;
        padding: 0;
        height: 26px;
        line-height: 26px;
        width: 100%;
        /* border-top: 1px solid #DDDDDD; */
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        border-bottom-left-radius: 2px;
        border-bottom-right-radius: 2px;
        display: block;
        ul {
            width: 100%;
            display: inline-block;
            margin: 0;
            -webkit-border-radius: 0;
            -moz-border-radius: 0;
            border-radius: 0;
            border-bottom-left-radius: 2px;
            border-bottom-right-radius: 2px;
            /*     -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.05);
                -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.05);
                box-shadow: 0 1px 2px rgba(0,0,0,0.05); */
            padding: 0;
            li{
                text-align: center;
                display: inline;
                box-sizing: border-box;
                a {
                    margin: 0;
                    /* border: 1px solid #ddd; */
                    border-radius: 0;
                    padding: 0;
                    box-shadow:         none;
                    -moz-box-shadow:    none;
                    -webkit-box-shadow: none;
                    background-color: white;

                    float: left;
                    text-decoration: none;

                    border: 0;
                    box-sizing: content-box;
                    color: #666666;
                    font-size: 20px;
                    height: 26px;
                    line-height: 26px;
                    -webkit-transition: all .5s cubic-bezier(.175,.885,.32,1);
                    transition: all .5s cubic-bezier(.175,.885,.32,1);
                }
            }
        }
    }
}

div.sp_result_area div.sp_pagination li.csFirstPage a,
div.sp_result_area div.sp_pagination li.csPreviousPage a,
div.sp_result_area div.sp_pagination li.csNextPage a,
div.sp_result_area div.sp_pagination li.csLastPage a {
    width: 30px;
}
div.sp_result_area div.sp_pagination li.csFirstPage a{
    border-left: 0;
    border-bottom-left-radius: 2px;
}
div.sp_result_area div.sp_pagination li.csLastPage a{
    border-right: 0;
    border-bottom-right-radius: 2px;
}

div.sp_result_area div.sp_pagination>ul>li>a:hover {
    color: #000000; background-color: #E8E8E8;
}
div.sp_result_area div.sp_pagination>ul>li.disabled>a{
    color: #DDDDDD;
    cursor: default;
}
div.sp_result_area div.sp_pagination>ul>li.disabled>a:hover {
    color: #DDDDDD;background-color: white;
}

div.sp_result_area div.sp_pagination>ul>li.pageInfoBox>a {
    width: 178px;
    text-align: center;
    /* padding-left: 4px;
    padding-right: 4px; */
    color: #666666;
    font-size: 14px;
}
div.sp_result_area div.sp_pagination>ul>li.pageInfoBox>a:hover {
    background-color: inherit;
    color: #666666;
    cursor: default;
}

.sp_results {
    background-color: white;
    list-style: none;
    margin: 0;
    padding: 0;
    & > li {
        height: auto !important;
        line-height: 1;
        margin: 0;
        overflow: hidden;
        padding: 4px 8px;
        position: relative;
        text-align: left;
        white-space: nowrap;
        font-size: 14px;
        color: black;
        cursor : pointer;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
        &.sp_message_box {
            height: 30px;
            line-height: 30px;
            text-align: center;
            box-sizing: content-box;
            font-size: 14px;
            cursor: default;
        }
        &.sp_over { background-color: #53A4EA !important;color: #fff !important;cursor: pointer; }
        &.sp_selected { color: #cccccc;cursor: default; }
    }
}

.sp_control_box{
    padding: 0;height: 27px;
    p{
        margin: 0;
        line-height: 27px;
        padding-left: 8px;
        font-size: 14px;
        font-weight: 600;
    }
    button{
        height: 27px;
        line-height: 20px;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        font-size: 13px !important;
        padding: 0 12px;
        border: 0;
        background: white none;
        color: #666666;
        text-align: left;
        -webkit-transition: all .5s cubic-bezier(.175,.885,.32,1);
        transition: all .5s cubic-bezier(.175,.885,.32,1);
        outline: none !important;
        float: right;
        opacity: .3;
    }
    &:hover{
        background-color: #F8F8F8;
        button{
            background-color: #F8F8F8;opacity: 1;
            &:hover{ background-color: #EEEEEE;color: black; }
        }
    }
}

/**
 * multiple selection mode
 */
div.sp_container_combo{
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-sizing: border-box;
    &.sp_disabled {
        box-shadow: none;
    }
    &.sp_container_open{
        border-radius: 2px;
    }
}
div.sp_container_combo.sp_disabled,
div.sp_container_combo.sp_disabled ul.sp_element_box,
div.sp_container_combo.sp_disabled .sp_input,
div.sp_container.sp_disabled .sp_input {
    background-color: #eeeeee;
    cursor: not-allowed !important;
}
div.sp_container.sp_disabled .sp_clear_btn,
div.sp_container_combo.sp_disabled ul.sp_element_box span.tag_close{
    display: none;
}

input.sp_combo_input{
    border: 0 !important;
    box-shadow: none;
    background-color: transparent;
    max-width: 100%;
    padding: 0;
    height: 34px !important;
    line-height: 34px !important;
    min-height: 34px !important;
    &:focus { box-shadow: none;border: 0; }
    &[readonly], &[disabled]{ background-color: white; }
}

ul.sp_element_box{
    margin: 0 24px 0 0;
    padding: 3px 0 0 3px;
    position: relative;
    overflow: hidden;
    clear: both;
    cursor: text;
    list-style: none;
    height: auto;
    min-height: 25px;
    font-size: 14px;
    & > li{
        list-style: none;
        padding: 0 5px;
        margin-right: 3px;
        margin-bottom: 3px;
        /* margin-bottom: 2px; */
        float: left;
        position: relative;
        box-sizing: content-box;
        &.full_width {
            width: 100%;
            input{
                width: 100% !important;
            }
        }
        &.selected_tag {
            border: 1px solid #AAAAAA;
            border-radius: 3px;
            background-color: #EFEFEF;
            cursor: pointer;
            max-width: 100%;
            box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
            height: 24px;
            line-height: 24px;
            -webkit-transition: all .5s cubic-bezier(.175,.885,.32,1);
            transition: all .5s cubic-bezier(.175,.885,.32,1);
            &:hover { background-color: white;border: 1px solid #D0D0D0;box-shadow: 0 2px 7px rgba(0,0,0,.1); }
            i {
                font-size: 14px;color: #AAAAAA;
                &:hover { color: black; }
            }
            span.tag_close {
                cursor: pointer;margin-left: 5px;font-size: 15px;
                font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
            }
        }
        &.input_box {
            padding: 0;
            /* margin: 0; */
            margin-top: 0;
            height: 26px;
            min-height: 26px;
            input {
                height: 26px !important;
                line-height: 26px !important;
                min-height: 26px !important;
            }
        }
    }
}

.sp_input_off { background: #eee;color: #333333; }

.sp_hide { display: none; }

/**
 * Select only
 */
.sp_container > .sp_select_ng {
    background: #fcc;
}

/*输入框设置了input-block-level样式时的特殊情况修复*/
div.sp_container input.sp_input.input-block-level{
    box-sizing:border-box;
    height: 30px;
    line-height: 30px;
    min-height: 30px;
    width: 100%;
}

div.sp_container_open .sp_input::-ms-clear{display:none;}
/* 移除微软浏览器，在输入框输入文本后，会出现X的问题，but is look like not working */
input::-ms-clear{display:none;}/*隐藏文本框叉子*/
input::-ms-reveal{display:none;}/*隐藏密码框小眼睛*/







@keyframes dropDownFadeInDown {
    from{ opacity: 0;transform: translate3d(0, -20px, 0); }
    to{ opacity: 1;transform: translate3d(0, 0, 0); }
}
@keyframes dropDownFadeInUp {
    from{ opacity: 0;transform: translate3d(0, 20px, 0); }
    to{ opacity: 1;transform: translate3d(0, 0, 0); }
}

/* Plugin icons */
@font-face {font-family: "sp-iconfont";
    src: url(''); /* IE9*/
    src: url('') format('embedded-opentype'), /* IE6-IE8 */
    url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAi8AAsAAAAADSQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFZW7kj9Y21hcAAAAYAAAACoAAACNjWzO3RnbHlmAAACKAAABDQAAAXE0sEAXGhlYWQAAAZcAAAALwAAADYPYaJpaGhlYQAABowAAAAeAAAAJAfeA41obXR4AAAGrAAAABcAAAAsK+oAAGxvY2EAAAbEAAAAGAAAABgIbAmwbWF4cAAABtwAAAAfAAAAIAEaAHhuYW1lAAAG/AAAAUUAAAJtPlT+fXBvc3QAAAhEAAAAdQAAAKCcItv9eJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/sc4gYGVgYOpk+kMAwNDP4RmfM1gxMjBwMDEwMrMgBUEpLmmMDgwVDznZW7438AQw9zA0AAUZgTJAQAmWQyAeJzFkjEOgkAQRf8KLkoksfIMFJaUnISTUBgSOgsOYuWxPsfAPzs0Bm11Nm+T+ZvMTP4sgD2ATFxFDoQnAiweUkPSM5RJz3FTfsFZSkRPsGbDlh0Hjpzmaln0/k3fRlCt7TG9VK8dDjhquqhuhcT4scZPIvyv9Xuc0n1fM20F/YpGJBzTWTu2UTaOHAVbR96CnSOXwcGx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PU0BdL/3FosEALgyU6rNDDwmFNmA2nwGcrrHngMfjSz5PPj6Q5bj/xICVwlZcVialufuIYjrW967TrTpJj9Oqy3iTq/j1MlUu4Ej0BvEMlfAAAAA==') format('woff'),
    url('') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
    url('') format('svg'); /* iOS 4.1- */
}

.sp-iconfont {
    font-family:"sp-iconfont" !important;
    font-size:16px;
    font-style:normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.if-unselect-all:before { content: "\e634"; }
.if-clear:before { content: "\e68c"; }
.if-select-all:before { content: "\e628"; }
.if-last:before { content: "\e67e"; }
.if-first:before { content: "\e681"; }
.if-next:before { content: "\e70d"; }
.if-warning:before { content: "\e63c"; }
.if-previous:before { content: "\e65a"; }
.if-close:before { content: "\e600"; }